/**
 * @Date 2020-06-30 15:59:56
 * @Remark
 */

import { Api, Res } from "@/public/model/api";

export const API_FILE_UPLOAD: Api = {
  title: "文件上传",
  path: "file/upload",
  method: "UPLOAD",
  prefix: "api/backstage",
};

// req
// 参数名file

// res
export interface ResFileUpload extends Res {
  data: ItemFileUpload[];
}

export interface ItemFileUpload {
  uri: string;
  fileName: string;
  original: string;
}

// fileName: "test_img.jpg"
// original: "test_img.jpg"
// uri: "nullimage/20207111183168e60d2cd7624ababc105bf25b2f6d80test_img.jpg"
